package thefirst.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LayoutController {
	@RequestMapping("/main.do")
	public String support(HttpServletRequest request,HttpServletResponse response) throws Exception{
		System.out.println("main");
		return "home";
	}
	@RequestMapping("/admin.do")
	public String admin(HttpServletRequest request,HttpServletResponse response) throws Exception{
		System.out.println("admin");
		return "admin";
	}
	@RequestMapping("/support.do")
	public String supportMain(HttpServletRequest request, HttpServletResponse response) throws Exception{
		return "support/support.support";
	}
	
	public String moveWriteNotice(HttpServletRequest request, HttpServletResponse response) throws Exception{
		return "support/writeNotice.notice";
	}
	/*@RequestMapping("/noticeList.do")
	public String noticeList(HttpServletRequest request, HttpServletResponse response) throws Exception{
		return "support/notice/notice.notice";
	}*/
}
